<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>后台管理工作平台</title>
</head>
<body>
<jsp:include page="../top.jsp"></jsp:include>
<jsp:include page="../left.jsp"></jsp:include>
<div style="height:470px;width:1077px;background-color:#FFFFFF;margin-left: 3px;float:left; ">
<div>
<form action="addgoodstype.do" name="form1" method="post">
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="30"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td height="24" bgcolor="#353c44"><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="6%" height="19" valign="bottom"><div align="center"><img src="<%=request.getContextPath() %>/images/tb.gif" width="14" height="14" /></div></td>
                <td width="94%" valign="bottom"><span class="STYLE1">商品类型添加</span></td>
              </tr>
            </table></td>
            <td><div align="right">
            <input type = "hidden" id = "intflag"  value=""/>
            <span class="STYLE1">
              &nbsp;<img src="<%=request.getContextPath() %>/images/add.gif" width="10" height="10" /> 添加   &nbsp; <img src="<%=request.getContextPath() %>/images/del.gif" width="10" height="10" /> 删除    &nbsp;&nbsp;<img src="<%=request.getContextPath() %>/images/edit.gif" width="10" height="10" /> 编辑   &nbsp;</span><span class="STYLE1"> &nbsp;</span></div></td>
          </tr>
        </table></td>
      </tr>
    </table></td>
  </tr>
  <tr>
  	<td>
  	<table>
  		<tr >
  			<td colspan=2><span style="color:#FF0000" id="errormessage" style="display: none">保存信息失败!</span></td>
  		</tr>
  		<tr>
  			<td>商品类型:</td>
  			<td><input type="text" maxlength="20" name="goodsType.name" id="name"/></td>
  		</tr>
  		<tr>
  			<td>排序:</td>
  			<td><input type="text" maxlength="5" name="goodsType.xh" id="xh" onkeyup="value=value.replace(/[^\d]/g,'')"/></td>
  		</tr>
  		<tr>
  			<td>备注:</td>
  			<td><textarea rows=5 name="goodsType.des" id="des" ></textarea></td>
  		</tr>
  		<tr>
  		<td colspan="2" align="center">
  			<input type="submit" value="提交"/>&nbsp;&nbsp;<input type="reset" value="重置"/></td>
  		</tr>
  	</table>
  	</td>
  </tr>
    </table>
    </form>
</div>
</div>
<jsp:include page="../down.jsp"></jsp:include>
</body>
</html>
<script type="text/javascript" >
$(function(){
	var messageflag = "<s:property value="intflag"/>";
	if(messageflag != "" && messageflag==1){
		$("#errormessage").show();
	}
})


</script>
